Ask_Warning WarningReturn 121 '~m(1,1,1,1)~hCDPMenu not Installed~nCDPmenu was not previously installed.~nSelect Ok below to install it or Cancel to Abort the program.~n~n~k~i(1)~e &Ok ~e ~d(2)~e &Cancel ~e'
If '@Num(WarningReturn) = 2' then exitfatal
;
; Step 1 Get the target directory for the installation
;
Ask_Value Target 120 C:\CDP\ '~m(1,1,1,1)~hInstallation Directory~nWhat directory should CDPMenu Install itself to?~nHit enter to accept the default.~n~n~k~I(1)Directory: ~e ~e'
;
; Step 2 Check the directry and if not present create it.
;
If @IsDir(Target) then DirCreated
MD target
;
:DirCreated
;
; Step 3 Define a logical for target called target to copy the files to
;
Define_log Target target
;
; Step 4 Copy all the Data files from the CDROM directory to the target directory.
;
Copy CDPData:CDPMENU.DAT Target:CDPMenu.dat
Copy CDPData:CDPMENU.IX Target:CDPMenu.IX
copy CDPData:CDPDoc.Dat Target:CDPMenu.DAT
Copy CDPData:CDPDoc.IX Target:CDPDOC.IX
Copy CDPInstall:*.* Target:*.*
;
; Step 5 Check that the user has at least 30 files in config.sys
;
Check_Files 30
;
; Step 6 Check that the user has the CDP env var in place, probly not or we would not be here
;
Set_Env CDP Target
;
:NormalExit
Ask_Message CopyProg 0 '~m(1,1,1,1)~w(45)~hCDPMenu will Exit~n~nPlease reboot your computer for changes to take effect.~n~nAfter Rebooting, Change to the CDP directory and type CDPMenu.~n~k~I(1)~eO&k~e'